import { ORDERS_RECEIVED, ORDERS_INIT } from '../action/actionOrders';
export function orderList (state = {}, action) {
    switch (action.type) {
    case ORDERS_RECEIVED:
        return Object.assign({}, state, {
            orders: action.orders,
        });
    case ORDERS_INIT:
        return Object.assign({}, state, {
            orders: action.orders,
        });
    default:
        return state;
    }
};
